import request from '@/utils/request'

//附件上传
export function attachUpload(data) {
	return request({
		method: 'post',
		url: 'tbSysAttachment/upload',
		headers: {
			userButton: 'a395e5424cad4effbd645407b1241213'
		},
		data
	})
}

//附件下载
export function attachDownload(id) {
	return request({
		method: 'get',
		responseType: 'blob',
		url: 'tbSysAttachment/download/' + id,
		headers: {
			userButton: '2fb0ba1485c9411f910b9db4b6cb650b'
		}
	})
}